#ecoding: utf-8 -*-

#以下是应用配置
import config
from pynixweb.controllers.controller import PynixWebPublisher
from werkzeug.utils import SharedDataMiddleware
from quixote.session import SessionManager
def create_publisher():
    #配置系统初始点
    publisher = PynixWebPublisher(mapper=config.mapper, display_exceptions='html', session_manager=SessionManager())
    publisher.is_thread_safe = True
    
create_publisher()
import quixote
wsgi_app = SharedDataMiddleware(quixote.get_wsgi_app(), 
    {'/static':config.SITE_CONFIG["dirs_config"]["static_root"]}
    )